package code07_面向对象.封装;

/**
 * @author 黄衡熙
 * @version 1.0
 * @date 2025年07月21日14:51
 */
public class Card {
    private String color;   // 花色:黑桃、梅花、红桃、方块,大、小
    private String num;     // 点数:A-K,王

    public Card() {
    }

    public Card(String color, String num) {
        this.color = color;
        this.num = num;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }
}
